package KKTriangle;

import static org.junit.Assert.*;

import org.junit.Test;

public class KKTriangleProgramTest {

	
	@Test
	public void testIsRightTriangle()
	{
		assertEquals(false, KKTriangleProgram.isRightTriangle(1, 2, 3));
		assertEquals(true, KKTriangleProgram.isRightTriangle(3, 4, 5));
		assertEquals(false, KKTriangleProgram.isRightTriangle(-1, 4, 5));
	}
	
	@Test
	public void testDetermineType()
	{
		assertEquals("Scalene", KKTriangleProgram.determineType(1, 2, 3));
		assertEquals("Isosceles", KKTriangleProgram.determineType(2, 2, 3));
		assertEquals("Equilateral", KKTriangleProgram.determineType(3, 3, 3));
	}

}
